﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<!--此页面实现Word图片自动批量上传的功能-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>zyOffice For KindEditor-3.x</title>
    <link type="text/css" rel="Stylesheet" href="demo.css" />
    <link type="text/css" rel="Stylesheet" href="zyoffice/css/w.css" />
    <script type="text/javascript" src="zyoffice/js/jquery-1.8.3.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="kindeditor-min.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/json2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/layer-3.1.1/layer.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/w.layer.js" charset="utf-8"></script>
    <script type="text/javascript" src="demo.js" charset="utf-8"></script>
</head>
<body>
    <div id="demos"></div>    
	<!--KindEditor编辑器-->
	<textarea id="content1" name="content1" style="width:700px;height:300px;visibility:hidden;"></textarea>
	<script type="text/javascript">
        zyOffice.getInstance({
            word:"http://localhost:13710/zyoffice/word/convert",
			wordExport:"http://localhost:13710/zyoffice/word/export",
            pdf:"http://localhost:13710/zyoffice/pdf/upload"            
        });//加载控件

		//加载kindeditor
		KE.show({
			id: 'content1'
			,imageUploadJson : '../../asp.net/upload_json.ashx'
            ,fileManagerJson : '../../asp.net/file_manager_json.ashx'
            ,allowFileManager : true
			, cssPath: './index.css'
			, items: ['source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', 'zyoffice','zywordexport','zyofficepdf','|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', '|', 'selectall', '-',
'title', 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold',
'italic', 'underline', 'strikethrough', 'removeformat', '|', 'image',
'flash', 'media', 'advtable', 'hr', 'emoticons', 'link', 'unlink', '|', 'about']
    		, afterCreate: function(id)
			{
				//初始化
                zyOffice.getInstance().SetEditorID(id);
    		}
		});
	</script>
</body>
</html>